﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using EShop.Core.Model.Market;

namespace EShop.Data.Mapping.Market
{
    public class ADMap : EntityTypeConfiguration<Advertise>
    {
        public ADMap()
        {
            this.ToTable("Eshop_AD");
            this.HasKey(a => a.Id);
            this.Property(a => a.Adname).IsRequired();
            this.Property(a => a.Adtitle).IsRequired();
        }
    }
}
